#pragma once
#include <vector>
#include <string>
using namespace std;
class Protocol{
private:
    union Uint32ToUint8
    {
        uint32_t m_uint32;
        uint8_t m_uint8[4]; 
    };
    
    private:
        uint32_t m_length_;
        vector<uint8_t> m_data_;
    public:
        Protocol();
        void setData(char*, size_t);
        vector<uint8_t> praseData(char*, size_t);
        void setBcc();
        vector<uint8_t> getData();
         ~Protocol()=default;
};